package net.xuhf.common;

public enum ResultEnum {

    UNKNOW_ERROR(400005, "未知异常，请联系管理员"),
    NO_HANDLER_FOUND_ERROR(400004, "接口不存在"),
    SUCCESS(0, "success"),
    FAIL(-1, "fail");

    private Integer code;
    private String msg;

    private ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
